package cn.wolfcode.trip.base.util;

import lombok.Getter;
import lombok.Setter;

/**
 * JSON格式数据对象
 */
@Setter
@Getter

public class JsonResult {
    private boolean success = true;
    private String errorMsg;
    private Object data;

    // 当页面出错的时候掉用发方法是封装数据
    public void mark(String errorMsg) {
        this.success = false;
        this.errorMsg = errorMsg;
    }

    public void setData(Object data) {
        this.data = data;
    }

}
